package dw.catalog

import dw.object.ActiveData

class ProductActiveData extends ActiveData {

	Date	availableDate
	
	Number	avgGrossMarginPercentDay,
			avgGrossMarginPercentMonth,
			avgGrossMarginPercentWeek,
			avgGrossMarginPercentYear,
			avgGrossMarginValueDay,
			avgGrossMarginValueMonth,
			avgGrossMarginValueWeek,
			avgGrossMarginValueYear,
			avgSalesPriceDay,
			avgSalesPriceMonth,
			avgSalesPriceWeek,
			avgSalesPriceYear,
			conversionDay,
			conversionMonth,
			conversionWeek,
			conversionYear,
			costPrice,
			daysAvailable,
			impressionsDay,
			impressionsMonth,
			impressionsWeek,
			impressionsYear,
			lookToBookRatioDay,
			lookToBookRatioMonth,
			lookToBookRatioWeek,
			lookToBookRatioYear,
			ordersDay,
			ordersMonth,
			ordersWeek,
			ordersYear,
			returnRate,
			revenueDay,
			revenueMonth,
			revenueWeek,
			revenueYear,
			salesVelocityDay,
			salesVelocityMonth,
			salesVelocityWeek,
			salesVelocityYear,
			unitsDay,
			unitsMonth,
			unitsWeek,
			unitsYear,
			viewsDay,
			viewsMonth,
			viewsWeek,
			viewsYear
	
    static constraints = {
		availableDate(nullable: true)
		
		avgGrossMarginPercentDay(nullable: true)
		avgGrossMarginPercentMonth(nullable: true)
		avgGrossMarginPercentWeek(nullable: true)
		avgGrossMarginPercentYear(nullable: true)
		avgGrossMarginValueDay(nullable: true)
		avgGrossMarginValueMonth(nullable: true)
		avgGrossMarginValueWeek(nullable: true)
		avgGrossMarginValueYear(nullable: true)
		avgSalesPriceDay(nullable: true)
		avgSalesPriceMonth(nullable: true)
		avgSalesPriceWeek(nullable: true)
		avgSalesPriceYear(nullable: true)
		conversionDay(nullable: true)
		conversionMonth(nullable: true)
		conversionWeek(nullable: true)
		conversionYear(nullable: true)
		costPrice(nullable: true)
		daysAvailable(nullable: true)
		impressionsDay(nullable: true)
		impressionsMonth(nullable: true)
		impressionsWeek(nullable: true)
		impressionsYear(nullable: true)
		lookToBookRatioDay(nullable: true)
		lookToBookRatioMonth(nullable: true)
		lookToBookRatioWeek(nullable: true)
		lookToBookRatioYear(nullable: true)
		ordersDay(nullable: true)
		ordersMonth(nullable: true)
		ordersWeek(nullable: true)
		ordersYear(nullable: true)
		returnRate(nullable: true)
		revenueDay(nullable: true)
		revenueMonth(nullable: true)
		revenueWeek(nullable: true)
		revenueYear(nullable: true)
		salesVelocityDay(nullable: true)
		salesVelocityMonth(nullable: true)
		salesVelocityWeek(nullable: true)
		salesVelocityYear(nullable: true)
		unitsDay(nullable: true)
		unitsMonth(nullable: true)
		unitsWeek(nullable: true)
		unitsYear(nullable: true)
		viewsDay(nullable: true)
		viewsMonth(nullable: true)
		viewsWeek(nullable: true)
		viewsYear(nullable: true)
    }
}
